package practice04;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

/**
 * @author Administrator
 * @version V1.0
 * @ProjectName:IntelliJ IDEA
 * @PackageName: practice04
 * @ClassName: FileServer
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @date 2019/12/31 17:34
 * @Copyright 大牛版板所有
 */
public class FileServer {
    public static void main(String[] args) {
        ServerSocket server = null;
        Socket socket = null;
        try {
            server = new ServerSocket(5000);
            while (true){
                socket = server.accept();
                ClientThread clientThread = new ClientThread(socket);
                new Thread(clientThread,"客户端1").start();
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
